ci: Enable libcurl by default on Fedora
authorColin Walters <walters@verbum.org>
Wed, 26 Jul 2017 19:51:57 +0000 (15:51 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 26 Jul 2017 20:54:35 +0000 (20:54 +0000)
The insttest fell over since its build used libsoup, but that just dropped out
of FAH.

Closes: #1030
Approved by: jlebon

.papr.yml
ci/build.sh

index ea378c9802d9f38bde7e27f613423046ae198b9f..0a4e04ee87a42865993a1189b6d8420e67b27ece 100644 (file)
--- a/.papr.yml
+++ b/.papr.yml
@@ -12,8 +12,6 @@ packages:
   - git
 
 env:
-    # At some point soon will encourage distros to use libcurl
-    CONFIGOPTS: "--with-curl --with-openssl"
     # Enable all the sanitizers for this primary build.
     # We only use -Werror=maybe-uninitialized here with a "fixed" toolchain
     CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2'
@@ -85,7 +83,7 @@ required: true
 context: f26-libsoup
 
 env:
-  CONFIGOPTS: "--without-curl --without-openssl"
+  CONFIGOPTS: "--without-curl --without-openssl --with-libsoup"
 
 tests:
   - ci/build-check.sh
@@ -98,7 +96,6 @@ required: true
 context: f26-introspection-tests
 
 env:
-    CONFIGOPTS: "--with-curl --with-openssl"
     # ASAN conflicts with introspection testing;
     # See https://github.com/ostreedev/ostree/issues/1014
     INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js"
index 2d7eb61ec8d68b873b0e1cde2eb94c423879fdd8..2207176477b329dfb70632fc864e8e84d9e027ad 100755 (executable)
@@ -21,4 +21,11 @@ DETECTED_CONFIGOPTS=
 if test -x /usr/bin/gnome-desktop-testing-runner; then
     DETECTED_CONFIGOPTS="${DETECTED_CONFIGOPTS} --enable-installed-tests=exclusive"
 fi
+# Default libcurl on by default in fedora unless libsoup is enabled
+if sh -c '. /etc/os-release; test "${ID}" = fedora'; then
+    case "${CONFIGOPTS:-}" in
+        *--with-soup*) ;;
+        *) CONFIGOPTS="${CONFIGOPTS:-} --with-curl"
+    esac
+fi
 build --enable-gtk-doc ${DETECTED_CONFIGOPTS} ${CONFIGOPTS:-}